package com.woniu.feign;

import com.woniu.dto.CustomerDto;
import com.woniu.dto.InsuranceTeamDto;
import com.woniu.dto.PageData;
import com.woniu.utils.ResData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("customer-server")
public interface CustomerFeign {
    @RequestMapping("/queryCustomer")
    ResData queryCustomer(@RequestBody PageData<CustomerDto> pageData);

    @RequestMapping("/deleteCustomer/{id}")
    ResData deleteResident(@PathVariable Integer id);

    @RequestMapping("addCustomer")
    ResData addCustomer(@RequestBody CustomerDto customer);


    @RequestMapping("/queryGroupList")
    ResData queryGroupList(@RequestBody PageData<InsuranceTeamDto> pageData);
}
